<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
    <script src="http://code.jquery.com/jquery-1.9.1.js"></script>
    <script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
</head>
<body>
<!--    jquery-ui下载地址https://jqueryui.com/download/all/-->
<!--    autocomplete文档：https://www.runoob.com/jqueryui/api-autocomplete.html-->
<input id="aa">
</body>
<script>
    $('#aa').autocomplete({
        source:'http://localhost:8080/star/autoComplete', //请求路径
        delay:100,//输入后请求的延迟
        minLength:1//输入框中内容最少为多少个字符，向服务器端发送请求
    })
</script>
</html>